package lab02.test37;

public class Undergraduate extends Student  {
    Undergraduate( String s,double a, double b, double c){
        this.name=s;
        this.a=a;
        this.b=b;
        this.c=c;
        this.average=(a+b+c)/3;
    }
    void grade(){
        if(this.average>60)
            System.out.println(name+"the average is:"+this.average+"通过");
        else
            System.out.println(name+"the average is:"+this.average+"不通过");
    }


}